package com.jiyi.retrofit;


import com.jiyi.bean.Result;
import com.jiyi.bean.iot.FireAlarmBean;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by Administrator on 2018/2/8.
 */

public interface IotService {

    //火警的数据列表
    @FormUrlEncoded()
    @POST("index.php/Home/Index/get_data")
    Observable<Result<List<FireAlarmBean>>> getFireAlarmList(@Field("token") String token, @Field("type") int type, @Field("p") int p);

    //火警的数据列表 简易版
    @FormUrlEncoded()
    @POST("index.php/Home/Index/get_data")
    Observable<Result<List<FireAlarmBean>>> getFireAlarmList(@Field("type") int type);

    //火警的数据详情
    @FormUrlEncoded()
    @POST("index.php/Home/Index/get_data_detail")
    Observable<Result<FireAlarmBean>> getFireAlarm(@Field("type") int type,@Field("alarm_sn") String alarm_sn);
}
